package com.qinghe.pro.entity.main;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class User implements Serializable {
	private static final long serialVersionUID = -8968426194978593244L;
	public static final Integer STATUS_DISABLED = 2;
	public static final Integer STATUS_ENABLED = 1;

    private Integer id;

    private String username;

    private String password;

    private String name;

    private String tel;

    private Integer status;

    private String hold1;

    private String hold2;

    private String hold3;

    private String hold4;

    private String hold5;

	private List<UserRole> userRoles = new ArrayList<UserRole>();

	public User() {
	}

	public User(Integer id) {
		this.id = id;
	}

	public User(Integer id, String name) {
		this.id = id;
		this.name = name;
	}

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel == null ? null : tel.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getHold1() {
        return hold1;
    }

    public void setHold1(String hold1) {
        this.hold1 = hold1 == null ? null : hold1.trim();
    }

    public String getHold2() {
        return hold2;
    }

    public void setHold2(String hold2) {
        this.hold2 = hold2 == null ? null : hold2.trim();
    }

    public String getHold3() {
        return hold3;
    }

    public void setHold3(String hold3) {
        this.hold3 = hold3 == null ? null : hold3.trim();
    }

    public String getHold4() {
        return hold4;
    }

    public void setHold4(String hold4) {
        this.hold4 = hold4 == null ? null : hold4.trim();
    }

    public String getHold5() {
        return hold5;
    }

    public void setHold5(String hold5) {
        this.hold5 = hold5 == null ? null : hold5.trim();
    }

	public List<UserRole> getUserRoles() {
		return userRoles;
	}

	public void setUserRoles(List<UserRole> userRoles) {
		this.userRoles = userRoles;
	}
}